package com.syt.zdlb.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration// 配置类
@MapperScan("com.syt.zdlb.mapper")
public class Mybatisplus {

    // 分页插件
     @Bean
     public PaginationInterceptor paginationInterceptor() {
         // 配置了分页插件
         return new PaginationInterceptor();
     }


}
